package cn.exrick.xboot.modules.AccessControl.service;

import cn.exrick.xboot.modules.AccessControl.AccessControlUserDto.AcUserForm;
import cn.exrick.xboot.modules.AccessControl.AccessControlUserDto.Acdto;
import cn.exrick.xboot.modules.AccessControl.AccessControlUserDto.UserDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.exrick.xboot.modules.AccessControl.entity.AccessControlUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * AccessControlUser接口
 * @author portal
 */
public interface IAccessControlUserService extends IService<AccessControlUser> {


    /**
     * 连表查询获取用户（user表与内外网权限中间表），查询出没有在中间表的user信息
     * @return
     */
    Page<UserDto> findUserByAccessControl(Page page, AcUserForm user);

    /**
     * 连表查询获取用户（user表与内外网权限中间表），查询出在中间表的user信息
     * @return
     */
    Page<Acdto> findAccessControl(Page page,  AcUserForm user);

    /**
     * 删除acu数据
     * @param accessControlUserList
     */
    public void delAccessControlBySys(List<AccessControlUser> accessControlUserList);

    /**
     * 通过username 和sysid 查询acu
     * @return
     */

    public List<AccessControlUser> findAcuBySysAndUser(AccessControlUser accessControlUser);
}